<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Phorm</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Phorm</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Phorm</p>
<p class="description"><p>The abstract Phorm class wraps all of the functionality of the form itself.  It is extended to created an HTML form. It specifies one abstract method:  'define_fields', which must set an attribute for each field in the form.  Fields must be descendents of the PhormField class.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">see:</span> <a href="../Fields/_fields.php.html">fields.php</a></li>
				<li><span class="field">abstract:</span> </li>
				<li><span class="field">example:</span> <a href="../__examplesource/exsource_Users_jober_Sites_phorms_examples_comment_form.php_53048f36053d55431b7ce838c7363850.html">A simple comment form</a></li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_phorms.php.html">/phorms.php</a> (line <span class="field">48</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#GET" title="details" class="const-name">GET</a> = 					<span class="var-type"> 0</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#POST" title="details" class="const-name">POST</a> = 					<span class="var-type"> 1</span>

				</div>
							</div>
		</div>
	</div>

	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$bound" title="details" class="var-name">$bound</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$clean" title="details" class="var-name">$clean</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$data" title="details" class="var-name">$data</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$errors" title="details" class="var-name">$errors</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$fields" title="details" class="var-name">$fields</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$method" title="details" class="var-name">$method</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$multi_part" title="details" class="var-name">$multi_part</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$valid" title="details" class="var-name">$valid</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																						
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">Phorm::GET|Phorm::POST</span>&nbsp;<span class="var-name">$method</span> = <span class="var-default">Phorm::GET</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$multi_part</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">array()</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#as_list" title="details" class="method-name">as_list</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#as_table" title="details" class="method-name">as_table</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#check_if_bound" title="details" class="method-name">check_if_bound</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$data</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array|null</span>
										<a href="#cleaned_data" title="details" class="method-name">cleaned_data</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#clean_data" title="details" class="method-name">clean_data</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#close" title="details" class="method-name">close</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#define_fields" title="details" class="method-name">define_fields</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#find_fields" title="details" class="method-name">find_fields</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">Iterator</span>
										<a href="#getIterator" title="details" class="method-name">getIterator</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#get_errors" title="details" class="method-name">get_errors</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#has_errors" title="details" class="method-name">has_errors</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#is_bound" title="details" class="method-name">is_bound</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#is_valid" title="details" class="method-name">is_valid</a>
											([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$reprocess</span> = <span class="var-default">false</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#open" title="details" class="method-name">open</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$target</span> = <span class="var-default">null</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">null</span>
										<a href="#set_data" title="details" class="method-name">set_data</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#__toString" title="details" class="method-name">__toString</a>
										()
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$bound" id="$bound"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$bound</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">71</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">True when the form has user-submitted data.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$clean" id="$clean"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$clean</span>
						(line <span class="line-number">89</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Private storage for cleaned field values.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$data" id="$data"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$data</span>
						(line <span class="line-number">77</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">A copy of the superglobal data array merged with any default field values  provided during class instantiation.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../default/Phorm.html#method__construct">Phorm::__construct()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$errors" id="$errors"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$errors</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">85</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Private storage to collect error messages. Stored as $field_name =&gt; $msg.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$fields" id="$fields"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$fields</span>
			 = <span class="var-default">array()</span>			(line <span class="line-number">81</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Private field storage.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$method" id="$method"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$method</span>
			 = <span class="var-default"> Phorm::GET</span>			(line <span class="line-number">63</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">The form's method. Determines which superglobal array to use as the data  source.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$multi_part" id="$multi_part"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$multi_part</span>
			 = <span class="var-default"> false</span>			(line <span class="line-number">67</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">If true, $_FILES is included in the form data. Makes possible file fields.</p>
	<ul class="tags">
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
<a name="var$valid" id="$valid"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$valid</span>
						(line <span class="line-number">94</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Memoized return value of the initial is_valid call.</p>
	<ul class="tags">
				<li><span class="field">see:</span> <a href="../default/Phorm.html#methodis_valid">Phorm::is_valid()</a></li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																			<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">103</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">Phorm::GET|Phorm::POST</span>&nbsp;<span class="var-name">$method</span> = <span class="var-default">Phorm::GET</span>], [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$multi_part</span> = <span class="var-default">false</span>], [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">array()</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">Phorm::GET|Phorm::POST</span>
				<span class="var-name">$method</span><span class="var-description">: whether to use GET or POST</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$multi_part</span><span class="var-description">: true if this form accepts files</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span><span class="var-description">: initial/default data for form fields (e.g. array('first_name'=&gt;'enter your name'))</span>			</li>
				</ul>
		
			
	</div>
<a name="methodas_list" id="as_list"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">as_list</span> (line <span class="line-number">386</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the form fields as a series of list items. Does not include the  list's opening and closing tags.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the HTML form</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			as_list
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodas_table" id="as_table"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">as_table</span> (line <span class="line-number">366</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the form fields as a series of HTML table rows. Does not include  the table's opening and closing tags, nor the table's tbody tags.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the HTML form</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			as_table
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcheck_if_bound" id="check_if_bound"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">check_if_bound</span> (line <span class="line-number">174</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns true if any of the field's names exist in the source data (or</p>
<p class="description"><p>in $_FILES if this is a multi-part form.)</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			check_if_bound
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span>			</li>
				</ul>
		
			
	</div>
<a name="methodcleaned_data" id="cleaned_data"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">cleaned_data</span> (line <span class="line-number">227</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an associative array of the imported form data on a bound, valid  form. Returns null if the form is not yet bound or if the form is not  valid.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array|null</span>
		<span class="method-name">
			cleaned_data
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodclean_data" id="clean_data"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">clean_data</span> (line <span class="line-number">291</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Processes each field's data in turn, calling it's get_value method to  access its &quot;cleaned&quot; data.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			clean_data
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodclose" id="close"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">close</span> (line <span class="line-number">344</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the form's closing HTML tag.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the form's closing tag</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			close
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methoddefine_fields" id="define_fields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">define_fields</span> (line <span class="line-number">166</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Abstract method that sets the Phorm's fields as class attributes.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">abstract:</span> </li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			define_fields
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodfind_fields" id="find_fields"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">find_fields</span> (line <span class="line-number">189</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Internal method used by the constructor to find all of the fields in the  class after the child's 'define_fields' is called. Returns an array of  the field instances.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the field instances</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			find_fields
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetIterator" id="getIterator"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getIterator</span> (line <span class="line-number">303</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns an iterator that returns each field instance in turn.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Iterator</span>
		<span class="method-name">
			getIterator
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodget_errors" id="get_errors"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">get_errors</span> (line <span class="line-number">258</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the list of errors.</p>
	<ul class="tags">
				<li><span class="field">return:</span> error messages</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			get_errors
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodhas_errors" id="has_errors"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">has_errors</span> (line <span class="line-number">248</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns true if the form has errors.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			has_errors
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodis_bound" id="is_bound"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">is_bound</span> (line <span class="line-number">238</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns true if the form is bound (i.e., there is data in the appropriate</p>
<p class="description"><p>superglobal array.)</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			is_bound
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodis_valid" id="is_valid"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">is_valid</span> (line <span class="line-number">269</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns true if all fields' data pass validation tests.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			is_valid
		</span>
					([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$reprocess</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$reprocess</span><span class="var-description">: if true (default: false), call all validators again</span>			</li>
				</ul>
		
			
	</div>
<a name="methodopen" id="open"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">open</span> (line <span class="line-number">314</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the form's opening HTML tag.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the form's opening tag</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			open
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$target</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$target</span><span class="var-description">: the form target ($_SERVER['PHP_SELF'] by default)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodset_data" id="set_data"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">set_data</span> (line <span class="line-number">213</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets the value of each field from the proper superglobal data array.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">access:</span> private</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">null</span>
		<span class="method-name">
			set_data
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method__toString" id="__toString"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">__toString</span> (line <span class="line-number">355</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a string of all of the form's fields' HTML tags as a table.</p>
	<ul class="tags">
				<li><span class="field">return:</span> the HTML form</li>
				<li><span class="field">author:</span> Jeff Ober</li>
				<li><span class="field">see:</span> <a href="../default/Phorm.html#methodas_table">Phorm::as_table()</a></li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			__toString
		</span>
				()
			</div>
	
		
			
	</div>
						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constGET" id="GET"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">GET</span>
			 = <span class="const-default"> 0</span>
			(line <span class="line-number">53</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Causes the form to use $_GET as its data source.</p>
	
	
</div>
<a name="constPOST" id="POST"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">POST</span>
			 = <span class="const-default"> 1</span>
			(line <span class="line-number">57</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Causes the form to use $_POST as its data source.</p>
	
	
</div>
						
		</div>
	</div>

	<p class="notes" id="credit">
		Documentation generated on Mon, 20 Apr 2009 08:29:25 -0400 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.2</a>
	</p>
	</div></body>
</html>